Skip to content

Conversation

@Remi-Gau
Copy link
Contributor

@Remi-Gau Remi-Gau commented Aug 5, 2020

This is to know what condition was presented for every volume.

@Remi-Gau
Copy link
Contributor Author

Remi-Gau commented Aug 5, 2020

@marcobarilari

Attaching an example of log file.

Change the extension back to .tsv to open it easily 🧙 - I just had to change it because github does not allow attaching .tsv files.

sub-ctrl666_ses-666_task-visualLocalizer_run-666_events_date-202008051605.log

We would just need a script to sort through that.

@Remi-Gau
Copy link
Contributor Author

Remi-Gau commented Aug 5, 2020

Also this PR was branched out of my work on the radial motion some changes are not relevant to this specific issue.

Sorry.

Will flag the parts that are only relevant.


%% Timing

% FOR 7T: if you want to create localizers on the fly, the following must be
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our TR will be around 1.8 ms and we to have only one "condition" per volume so we have to make sure some of our parameters are a multiple of the TR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add an automatic check for this that send an error in case we don't the math wrong.

function cfg = setKeyboards(cfg)
cfg.keyboard.escapeKey = 'ESCAPE';
cfg.keyboard.responseKey = {'space'};
cfg.keyboard.responseKey = {'space', 't'};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will be monitoring the trigger keys on the same KbQueue as the responses so we need automate adding the value from cfg.mri.triggeyKey to cfg.keyboard.responseKey


cfg.extraColumns = {'direction', 'speed', 'target', 'event', 'block'};
cfg.extraColumns = {'direction', 'speed', 'target', 'event', 'block', 'keyName'};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for extra precautions we wanto also collect the key pressed by the subject to distinguish keypresses from trigger


thisEvent.event = iEvent;
thisEvent.block = iBlock;
thisEvent.keyName = 'n/a';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dummy value for the events


responseEvents = getResponse('check', cfg.keyboard.responseBox, cfg, getOnlyPress);

responseEvents = getResponse('check', cfg.keyboard.responseBox, cfg, ...
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part and and the one line 154 need refactoring but the logic is to check responses from KbQueue and then save them and change the name of the trial type from response to trigger if necessary

responseEvents(iResp).block = iBlock;
responseEvents(iResp).onset = ...
responseEvents(iResp).onset - cfg.experimentStart;
responseEvents(iResp).event = 'n/a';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could give the fields block and event some value.

@Remi-Gau
Copy link
Contributor Author

Remi-Gau commented Aug 5, 2020

fix #6

@Remi-Gau
Copy link
Contributor Author

Remi-Gau commented Aug 5, 2020

merging now 🚀

@Remi-Gau Remi-Gau merged commit 7bc1a21 into cpp-lln-lab:master Aug 5, 2020
@Remi-Gau Remi-Gau deleted the remi-save_stim_file branch August 11, 2020 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants